from __future__ import print_function
import numpy as np

a = np.arange(12).reshape(3, 4)

print(a)
print("(rows, columns)", a.shape)
print("dimension", a.ndim)

def f(x,y):
    return 10*x+y

b = np.fromfunction(f,(5,4),dtype=int)
print(b)

